#ifndef REGISTER_H
#define REGISTER_H

#include <QWidget>
#include "jmysql.h"

namespace Ui {
class Register;
}

class Register : public QWidget
{
    Q_OBJECT

public:
    explicit Register(QWidget *parent = 0);
    ~Register();

private slots:
    void on_pBtn_Reg_Register_clicked();

private:
    Ui::Register *ui;

    // 变量
    long UserId;

    // 函数
    void Init();
    bool CheckInfoEmpty();
    bool IsUserExist();
    int GetUserId();
    bool InsertUser();
};

#endif // REGISTER_H
